/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

/* iOS状态栏 */
.ios-status-bar {
    height: 44px;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* iOS TabBar */
.ios-tab-bar {
    height: 83px; /* 包含底部安全区域 */
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 30px; /* 底部安全区域 */
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
    width: 20%;
}

.tab-item i {
    font-size: 24px;
    margin-bottom: 4px;
    color: #8e8e93;
}

.tab-item.active i {
    color: #007aff;
}

.tab-item span {
    font-size: 10px;
    color: #8e8e93;
}

.tab-item.active span {
    color: #007aff;
}

/* 内容区域 */
.content-area {
    padding: 16px;
    padding-bottom: 100px; /* 为底部TabBar留出空间 */
    overflow-y: auto;
    height: calc(100% - 44px - 83px);
}

/* iOS风格按钮 */
.ios-button {
    background-color: #007aff;
    color: white;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    border: none;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.ios-button-secondary {
    background-color: #e5e5ea;
    color: #007aff;
}

/* iOS风格卡片 */
.ios-card {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* iOS风格输入框 */
.ios-input {
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    width: 100%;
    font-size: 16px;
}

/* 药品信息卡片 */
.medicine-card {
    display: flex;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.medicine-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.medicine-info {
    padding: 12px;
    flex: 1;
}

.medicine-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.medicine-company {
    color: #8e8e93;
    font-size: 14px;
    margin-bottom: 8px;
}

.medicine-authenticity {
    color: #34c759;
    font-weight: 600;
    font-size: 14px;
}

/* 奖励样式 */
.reward-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: white;
    border-radius: 12px;
    margin-bottom: 12px;
}

.reward-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: #f2f2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.reward-info {
    flex: 1;
}

.reward-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.reward-description {
    color: #8e8e93;
    font-size: 14px;
}

.reward-value {
    color: #ff3b30;
    font-weight: 600;
}

/* 用户资料项 */
.profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e5e5ea;
}

.profile-item-label {
    font-weight: 500;
}

.profile-item-value {
    color: #8e8e93;
}

/* 通用辅助类 */
.text-primary {
    color: #007aff;
}

.text-success {
    color: #34c759;
}

.text-danger {
    color: #ff3b30;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.rounded-full {
    border-radius: 9999px;
} 